package br.ufpa.cbcc2007.teste;

import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;

public class HelloMIDlet extends MIDlet implements CommandListener {
	private Form mMainForm;

	public HelloMIDlet() {
		mMainForm = new Form("HelloMIDlet");
		mMainForm.append(new StringItem(null, "Hello, MIDP!"));
		mMainForm.append(new StringItem(null, "\nHei"));
		mMainForm.append(new StringItem(null, "\nHei"));
		mMainForm.addCommand(new Command("Exit", Command.EXIT, 0));
		mMainForm.setCommandListener(this);
		Item a = new TextField("texto: ","",30,5);
		mMainForm.append(a);
	}

	public void startApp() {
		Display.getDisplay(this).setCurrent(mMainForm);
	}

	public void pauseApp() {}

	public void destroyApp(boolean unconditional) {}

	public void commandAction(Command c, Displayable s) {
		notifyDestroyed();
	}
}
